﻿using AutoMapper;
using WeatherHistory.Api.CommandsQueries.Mapping;
using WeatherHistory.Data.Entities;

namespace WeatherHistory.Api.CommandsQueries.Commands.Accounts.Authentication;

public class AuthenticationAccountsCommandResponse : IMapWith<Account>
{
    public long Id { get; set; }

    public void Mapping(Profile profile)
    {
        profile.CreateMap<Account, AuthenticationAccountsCommandResponse>()
            .ForMember(dest => dest.Id,
                opt => opt.MapFrom(src => src.Id));
    }
}